//
//  NSDate+Extension.h
//  client_confirm
//
//  Created by Seven on 14-7-1.
//  Copyright (c) 2014年 Seven. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSData+Transition.h"
@class PhotoModel;
@interface NSDate(extension)

+ (long )gk_now;
+ (long long)gk_now64;

+ (int)timezoneHourOffset;
+ (int)timezoneSecondOffset;

- (NSString *)FORMAT_YMDHMS;
- (NSString *)FORMAT_YMDHM;
- (NSString *)FORMAT_YMD;
- (NSString *)FORMAT_MDHM;
- (NSString *)FORMAT_MDHMS;
- (NSString *)FORMAT_MD;
- (NSString *)FORMAT_HM;
- (NSString *)FORMAT_HMS;

+ (NSString *)fullTimeString;

//标准：yyyy-MM-dd HH:mm
+ (NSString *)custom_YMDHM:(long long)seconds;

//标准：MM-dd HH:mm
+ (NSString *)custom_MDHM:(long long)seconds;

//标准：MM/dd
+ (NSString *)custom_MD:(long long)seconds;

//标准：yyyy-MM-dd HH:mm:ss
+ (NSString *)custom_YMDHMS:(long long)seconds;


//标准：yyyy-MM-dd
+ (NSString *)custom_YMD:(long long)seconds;

+ (NSString *)recentlyTimeStringWithTimeline:(long long)timeline;
- (NSString *)recentlyTimeString;

//消息列表时间现实
+ (NSString *)listTimeStringWithTimeline:(long long)timeline;
- (NSString *)listTimeString;
//消息详情时间现实
+ (NSString *)detailTimeStringWithTimeline:(long long)timeline;
- (NSString *)detailTimeString;

- (NSString *)fullTimeString;

- (BOOL)is_today;
//获取当前时区时间
+ (NSDate *)getCurrentZoneDate:(NSDate *)date;

//倒计时秒数
- (NSInteger)countDownSecond;

//毫秒时间戳
- (long long)timeInterval;

/**天数*/
+ (long)dayCount;
@end
